package com.sxpi.chapter02.oracle;

import com.sxpi.chapter02.factory.IDataSourceFactory;
import com.sxpi.chapter02.mode.IDataSource;
import com.sxpi.chapter02.mysql.MysqlDruidDataSource;
import com.sxpi.chapter02.mysql.MysqlHikariCPDataSource;

/**
 * @Author: 董伟豪
 * @Date: 2023/2/5 11:24
 */
public class OracleDataSourceFacotry implements IDataSourceFactory {

    @Override
    public IDataSource createDruidDataSource() {
        return new OracleDruidDataSource();
    }

    @Override
    public IDataSource createHikariCPDataSource() {
        return new OracleHikariCPDataSource();
    }
}
